import 'dart:io';

import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(title: const Text("这里是标题")),
      body: const ImageWidget(),
    ),
  ));
}

class ImageWidget extends StatelessWidget {
  const ImageWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Center(
      child: Image.file(
        File("E:/2.jpg"),
        width: 100,
        height: 100,
      ),
    );
  }
}
